package com.dmj.sqldsl.wrapper;

import com.dmj.sqldsl.builder.DeleteBuilder;

public class DeleteWrapper<T> extends Wrapper<T> {

  public DeleteWrapper(Class<T> entityClass) {
    super(entityClass);
  }

  @Override
  protected Wrapper<T> createNewWrapper() {
    return new UpdateWrapper<>(this.getEntityClass());
  }

  @Override
  protected DeleteBuilder toDeleteBuilder() {
    return DeleteBuilder.from(getEntityClass()).where(getConditionsBuilder());
  }
}
